.class Lcom/baidu/aj;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Landroid/app/Activity;

.field final synthetic b:Lcom/baidu/AppActivity;


# direct methods
.method constructor <init>(Lcom/baidu/AppActivity;Landroid/app/Activity;)V
    .locals 0

    iput-object p1, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    iput-object p2, p0, Lcom/baidu/aj;->a:Landroid/app/Activity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    const/4 v7, 0x1

    const/4 v6, 0x0

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->e(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v1}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baidu/App;->j()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/App;->e()Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->a(Lcom/baidu/AppActivity;)Landroid/widget/ImageView;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v1}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baidu/App;->e()Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    :cond_0
    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->f(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "\u5df2\u4e0b\u8f7d "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v2}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v2

    invoke-virtual {v2}, Lcom/baidu/App;->d()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->g(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v1}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baidu/App;->k()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->h(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u5f00\u53d1\u8005\uff1a%s\n\u7248\u672c\uff1a%s\n\u53d1\u5e03\u65e5\u671f\uff1a%s\nAPP\u5927\u5c0f\uff1a%s\n\u7c7b\u522b\uff1a%s"

    const/4 v2, 0x5

    new-array v2, v2, [Ljava/lang/Object;

    iget-object v3, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v3}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v3

    invoke-virtual {v3}, Lcom/baidu/App;->g()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v6

    iget-object v3, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v3}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v3

    invoke-virtual {v3}, Lcom/baidu/App;->l()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v7

    const/4 v3, 0x2

    iget-object v4, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v4}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v4

    invoke-virtual {v4}, Lcom/baidu/App;->h()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x3

    iget-object v4, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v4}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v4

    invoke-virtual {v4}, Lcom/baidu/App;->i()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x4

    iget-object v4, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v4}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v4

    invoke-virtual {v4}, Lcom/baidu/App;->m()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->i(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "   "

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->j(Lcom/baidu/AppActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/widget/Button;->setEnabled(Z)V

    invoke-static {}, Lcom/baidu/as;->a()Lcom/baidu/as;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v1}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/baidu/as;->d(Lcom/baidu/bl;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->i(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u5e94\u7528\u5df2\u5b89\u88c5"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    :goto_0
    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/App;->a()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_5

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->k(Lcom/baidu/AppActivity;)Landroid/widget/HorizontalScrollView;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/widget/HorizontalScrollView;->setVisibility(I)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->l(Lcom/baidu/AppActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->removeAllViews()V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baidu/App;->a()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_5

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/App$Snag;

    new-instance v2, Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/baidu/aj;->a:Landroid/app/Activity;

    invoke-direct {v2, v3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v4, 0x87

    const/16 v5, 0x43

    invoke-direct {v3, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v4, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v4}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v4

    invoke-virtual {v4}, Lcom/baidu/App;->a()Ljava/util/List;

    move-result-object v4

    invoke-interface {v4, v0}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v4

    iget-object v5, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v5}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v5

    invoke-virtual {v5}, Lcom/baidu/App;->a()Ljava/util/List;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    sub-int/2addr v5, v7

    if-eq v4, v5, :cond_1

    const/16 v4, 0x11

    invoke-virtual {v3, v6, v6, v4, v6}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    :cond_1
    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v0}, Lcom/baidu/App$Snag;->getThumbBmp()Landroid/graphics/Bitmap;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    new-instance v3, Lcom/baidu/an;

    invoke-direct {v3, p0, v0}, Lcom/baidu/an;-><init>(Lcom/baidu/aj;Lcom/baidu/App$Snag;)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->l(Lcom/baidu/AppActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_1

    :cond_2
    invoke-static {}, Lcom/baidu/as;->a()Lcom/baidu/as;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v1}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/baidu/as;->c(Lcom/baidu/bl;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->i(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u5e94\u7528\u5df2\u4e0b\u8f7d"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->j(Lcom/baidu/AppActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setEnabled(Z)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->j(Lcom/baidu/AppActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Lcom/baidu/ak;

    invoke-direct {v1, p0}, Lcom/baidu/ak;-><init>(Lcom/baidu/aj;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    :cond_3
    invoke-static {}, Lcom/baidu/as;->a()Lcom/baidu/as;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v1}, Lcom/baidu/AppActivity;->b(Lcom/baidu/AppActivity;)Lcom/baidu/App;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/baidu/as;->b(Lcom/baidu/bl;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->i(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u4e0b\u8f7d\u4e2d..."

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_4
    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->i(Lcom/baidu/AppActivity;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->j(Lcom/baidu/AppActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v7}, Landroid/widget/Button;->setEnabled(Z)V

    iget-object v0, p0, Lcom/baidu/aj;->b:Lcom/baidu/AppActivity;

    invoke-static {v0}, Lcom/baidu/AppActivity;->j(Lcom/baidu/AppActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Lcom/baidu/al;

    invoke-direct {v1, p0}, Lcom/baidu/al;-><init>(Lcom/baidu/aj;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    :cond_5
    return-void
.end method
